﻿using System;
using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.login
{
    public class SHLuckRollResultRet : Message
    {
        public static int TYPE = 7;
        public static int ID = 43;

        private int _prize;

        public int Prize
        {
            get
            {
                return _prize;
            }

            set
            {
                _prize = value;
            }
        }

        public void decode(Input _in)
        {
            Prize = _in.readInt();
        }

        public void encode(Output _out)
        {
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return String.Format("prizeNum={0}", Prize.ToString());
        }
    }
}